<?php
session_start();
import_request_variables("gP");
header("Content-Type: text/html; charset=iso-8859-1");
include("conex.php");
//print_r($_GET);
if($ideval >= 3)
{
echo "<input type='hidden' value='0' id='subev_' name='subev_'>";
}
else
{
$lnacq="Especifique la Evolucion: <select name='subev_' class='datos' id='subev_' $dele>
<option value=0>---></option>";		
$nac_valq="SELECT id_principal, descripcion FROM cat_subevolucion where nEvolucion = $ideval";
$sql_nacq=mysql_query($nac_valq,$link) or die(mysql_error().$nac_valq);
while($rowq=mysql_fetch_row($sql_nacq)){
if ($def == $rowq[0]){$selected = "selected";}else{$selected = "";}
$lnacq.="<option value='".$rowq[0]."' $selected>".$rowq[1]."</option>";
}
$lnacq.="</select>";
echo $lnacq;
}

//abrir fecha de Egreso
if($ideval == 1 || $ideval==4)
{
?>
<script>
document.getElementById('divfecEgreso').style.display='block';	
</script>
<?php }else{
?>
<script>
document.getElementById('divfecEgreso').style.display='none';	
document.getElementById('fegreso').value='';
</script>
<?php }?>